// 静态路由配置
// 书写格式与动态路由格式一致，全部经由框架统一转换
// 比较动态路由在meta中多加入了role角色权限，为数组类型。一个菜单是否有权限显示，取决于它以及后代菜单是否有权限。
// routes 显示在左侧菜单中的路由(显示顺序在动态路由之前)
// 示例如下

/**
 * @type {import('vue-router').RouteRecordRaw[]}
 */
const routes = [
	{
		name: "home",
		path: "/home",
		meta: {
			title: "首页",
			icon: "el-icon-eleme-filled",
			type: "menu"
		},
		children: [
			// {
			// 	name: "dashboard",
			// 	path: "/dashboard",
			// 	component: "home",
			// 	meta: {
			// 		title: "控制台",
			// 		icon: "el-icon-menu",
			// 		affix: true
			// 	}
			// },
			{
				name: "resource",
				path: "/resource",   //默认首页
				component: "resource",
				meta: {
					title: "资源",
					icon: "el-icon-trend-charts",
					affix: true   //是否不可关闭tag
				}
			},
			{
				name: "channel",
				path: "/channel",
				component: "channel",
				meta: {
					title: "渠道成交",
					icon: "el-icon-coin"
				}
			},
			{
				name: "teachingInfo",
				path: "/teachingInfo",
				component: "teachingInfo",
				meta: {
					title: "教学教务",
					icon: "el-icon-office-building"
				}
			}
		]
	},
	{
		name: "student",
		path: "/student",
		meta: {
			title: "学员管理",
			icon: "el-icon-user",
			type: "menu"
		},
		children: [
			{
				name: "clue-List",
				path: "/clue/list",
				component: "clue/info/list",
				meta: {
					title: "资源列表",
					icon: "el-icon-box"
				}
			},
			{
				name: "clueDetail",
				path: "/clue/detail/:id",
				component: "clue/info/detail",
				meta: {
					title: "资源详情",
					icon: "el-icon-user",
					hidden: true
				}
			},
			{
				name: "contract",
				path: "/contract/signed",
				component: "contract/signed/signed.vue",
				meta: {
					title: "学员合同签约",
					icon: "el-icon-takeaway-box"
				}
			},
			{
				name: "student-list",
				path: "/student/list",
				component: "student/info/list",
				meta: {
					title: "学员列表",
					icon: "el-icon-user"
				}
			},
			{
				name: "student-detail",
				path: "/student/detail/:id",
				component: "student/info/detail",
				meta: {
					title: "学员详情",
					icon: "el-icon-user",
					hidden: true
				}
			},
			{
				name: "student-graduation-application",
				path: "/student/detail/graduationApplication/:id",
				component: "student/info/detail/components/graduation-application/index",
				meta: {
					title: "学员毕业申请详情",
					icon: "el-icon-user",
					hidden: true
				}
			},
			// {
			// 	name: "student-record",
			// 	path: "/student/record",
			// 	component: "student/record/index",
			// 	"meta": {
			// 		"title": "学员学习记录",
			// 		"icon": "el-icon-user",
			// 		"affix": true
			// 	},
			// },
			// {
			// 	name: "student-apply",
			// 	path: "/student/apply",
			// 	component: "student/apply/apply.vue",
			// 	"meta": {
			// 		"title": "报读明细",
			// 		"icon": "el-icon-collection",
			// 	},
			// },
			{
				name: "student-attendance",
				path: "/student/attendance",
				component: "student/attendanceManage/attendance.vue",
				meta: {
					title: "考勤管理",
					icon: "el-icon-warning"
				}
			},
			{
				name: "student-graduate",
				path: "/student/graduate",
				component: "student/graduate/index.vue",
				meta: {
					title: "毕业管理",
					icon: "el-icon-money"
				}
			}
		]
	},
	{
		name: "teach",
		path: "/teach",
		meta: {
			title: "教务管理",
			icon: "el-icon-sell",
			type: "menu"
		},
		children: [
			{
				name: "course",
				path: "/teach/course",
				component: "teach/course/course.vue",
				meta: {
					title: "课程管理",
					icon: "el-icon-sunset"
				}
			},
			{
				name: "editCourse",
				path: "/teach/editCourse/:id",
				component: "teach/course/editCourse/editCourse.vue",
				meta: {
					title: "编辑课程",
					icon: "el-icon-sunset",
					hidden: true
				}
			},
			{
				name: "package",
				path: "/teach/package",
				component: "teach/package/package.vue",
				meta: {
					title: "套餐管理",
					icon: "el-icon-van"
				}
			},
			{
				name: "packageDetail",
				path: "/teach/package/detail/:id",
				component: "teach/package/detail/index.vue",
				meta: {
					title: "查看详情",
					icon: "el-icon-sunset",
					hidden: true
				}
			},
			{
				name: "packageBranch",
				path: "/teach/package/packageBranch/:id",
				component: "teach/package/packageBranch/packageBranch.vue",
				meta: {
					title: "套餐分班",
					icon: "el-icon-sunset",
					hidden: true
				}
			},
			{
				name: "teach-class",
				path: "/teach/class",
				component: "teach/class/class.vue",
				meta: {
					title: "班级管理",
					icon: "el-icon-school",
					hidden: true
				}
			},
			{
				name: "teach-addclass",
				path: "/teach/addclass",
				component: "teach/class/addclass/addclass.vue",
				meta: {
					title: "添加班级",
					icon: "el-icon-school",
					hidden: true
				}
			},
			{
				name: "teach-redactclass",
				path: "/teach/redact/:id",
				component: "teach/class/redact/redactclass.vue",
				meta: {
					title: "编辑班级",
					icon: "el-icon-school",
					hidden: true
				}
			},
			{
				name: "teach-classlist",
				path: "/teach/class/list",
				component: "teach/class/list/list.vue",
				meta: {
					title: "班级名单",
					icon: "el-icon-school",
					hidden: true
				}
			},
			{
				name: "teach-classarrang",
				path: "/teach/class/arrang",
				component: "teach/class/arrang/arrang.vue",
				meta: {
					title: "班级排课",
					icon: "el-icon-school",
					hidden: true
				}
			},
			{
				name: "teach-class1",
				path: "/teach/class1",
				component: "teach/class1/class.vue",
				meta: {
					title: "班级管理",
					icon: "el-icon-school"
				}
			},
			{
				name: "teach-attendance",
				path: "/teach/class/attendance",
				component: "teach/class1/components/classAttendance/attendance.vue",
				meta: {
					title: "班级考勤",
					icon: "el-icon-school",
					hidden: true
				}
			}
		]
	},
	{
		name: "discounts",
		path: "/discounts",
		meta: {
			title: "营销管理",
			icon: "el-icon-wallet",
			type: "menu"
		},
		children: [
			{
				name: "discounts",
				path: "/discounts/coupon",
				component: "discounts/coupon/coupon.vue",
				meta: {
					title: "优惠卷管理",
					icon: "el-icon-sunny"
				}
			},
			{
				name: "rule",
				path: "/discounts/rule",
				component: "discounts/rule/rule.vue",
				meta: {
					title: "优惠卷规则设置",
					icon: "el-icon-key",
					hidden: true
				}
			},
			{
				name: "check",
				path: "/discounts/check",
				component: "discounts/coupon/check/class.vue",
				meta: {
					title: "查看优惠班级",
					icon: "el-icon-key",
					hidden: true
				}
			},
			{
				name: "feifeiCoupon",
				path: "/discounts/feifeiCoupon",
				component: "discounts/feifeiCoupon/coupon.vue",
				meta: {
					title: "优惠卷(菲菲)",
					icon: "el-icon-sunny",
					hidden: true
				}
			}
		]
	},
	{
		name: "data",
		path: "/data",
		meta: {
			title: "数据中心",
			icon: "el-icon-scale-to-original",
			type: "menu",
		},
		children: [
			{
				name: "data-navmenu",
				path: "/data/navmenu",
				meta: {
					title: "运营部数据展示",  //（交易记录）
					icon: "el-icon-suitcase",
				},
				children: [
					{
						name: "operational",
						path: "/data/operational",
						component: "data/operational/operational.vue",
						meta: {
							title: "个人运营数据中心",  //（交易记录）
							icon: "el-icon-suitcase",
						}
					},
					{
						name: "operationalData",
						path: "/data/operationalData",
						component: "data/operationalData/index.vue",
						meta: {
							title: "校区运营数据",
							icon: "el-icon-suitcase",
						}
					},
					{
						name: "dayOperationData",
						path: "/data/dayOperationData",
						component: "data/dayOperationData/index.vue",
						meta: {
							title: "客服运营数据",
							icon: "el-icon-suitcase",
						}
					},
				]
			},
			{
				name: "fund",
				path: "/finance/fund",
				component: "finance/fund/fund.vue",
				meta: {
					title: "财务流水",
					icon: "el-icon-data-line",
					hidden: true,
				}
			},
		]
	},
	// {
	// 	name: "message",
	// 	path: "/message",
	// 	meta: {
	// 		title: "信息通知",
	// 		icon: "el-icon-trend-charts",
	// 		type: "menu"
	// 	},
	// 	children: [
	// 		{
	// 			name: "customerMessage",
	// 			path: "/message/customerMessage",
	// 			component: "message/customerAcceptance/index.vue",
	// 			meta: {
	// 				title: "客户接收",
	// 				icon: "el-icon-data-line"
	// 			}
	// 		},
	// 	]
	// },
	{
		name: "courseware",
		path: "/courseware",
		meta: {
			title: "课件管理",
			icon: "el-icon-takeaway-box",
			type: "menu"
		},
		children: [
			{
				name: "courseware-list",
				path: "/courseware/list",
				component: "courseware",
				meta: {
					title: "课件列表",
					icon: "el-icon-histogram"
				}
			}
		]
	},
	{
		name: "businessManage",
		path: "/businessManage",
		meta: {
			title: "企业管理",
			icon: "el-icon-trend-charts",
			type: "menu"
		},
		children: [
			{
				name: "departmentManage",
				path: "/businessManage/departmentManage",
				component: "businessManage/departmentManage/index.vue",
				meta: {
					title: "部门管理",
					icon: "el-icon-data-line"
				}
			},
			// {
			// 	name: "staffManage",
			// 	path: "/businessManage/staffManage",
			// 	component: "businessManage/staffManage/index.vue",
			// 	meta: {
			// 		title: "员工管理",
			// 		icon: "el-icon-data-line"
			// 	}
			// },
			{
				name: "powerManage",
				path: "/businessManage/powerManage",
				component: "businessManage/powerManage/index.vue",
				meta: {
					title: "权限管理",
					icon: "el-icon-data-line"
				}
			}
		]
	}
]
// const routes = []

export default routes
